package com.jbit.userserver.service.impl;

import com.jbit.userserver.model.entity.UserBusiness;
import com.jbit.userserver.mapper.UserBusinessMapper;
import com.jbit.userserver.service.UserBusinessService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class UserBusinessServiceImpl implements UserBusinessService {
    @Resource
    private UserBusinessMapper userBusinessMapper;
    @Override
    public UserBusiness getBusinessByTypeAndKeyId(String type, Integer keyId) {
        return userBusinessMapper.getByTypeAndKeyId(type,keyId);
    }
}
